<script type="text/javascript">
	function onlyNumbers(evt) 
	{
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode > 31 && (charCode < 48 || charCode > 57)) {
			//status = "This field accepts numbers only."
			alert("Harus di Isi Angka");
			return false
		}
		//status = ""
		return true 	
	}
</script>
{mastersupp}
<form method="post" name="frmEdit" action="<?php echo site_url('mastersuppliercontroller/ubahmastersupplier');?>">
    <h3 align="center"><u><strong>EDIT DAFTAR SUPPLIER</strong></u> </h3>
    <table width="100%" cellpadding="3" cellspacing="0" border="1">
        <tr>
            <td width="129"><strong>Kode Supplier</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td width="808" colspan="3"><input type="text"  name="kdsupp" id="kdsupp" maxlength="12" size="25" value="{Kodesupplier}" readonly="readonly"/></td>
        </tr>
        <tr>
            <td width="129"><strong>Nama Supplier</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td ><input type="text"  name="nmsupp" id="nmsupp" size="25" maxlength="20" value="{suppliername}"/></td>
        </tr>
        <tr>
			<td width="129"><strong>Alamat</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td>
                <input type="text"  name="alamat" id="alamat" size="100" value="{Address}"/>
            </td>
		</tr>
        <tr>
            <td width="129"><strong>Contact Person</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td ><input type="text"  name="contact" id="contact" size="30" maxlength="20" value="{ContactPerson}"/></td>
        </tr>
        <tr>
            <td width="129"><strong>Email</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td ><input type="text"  name="email" id="email" size="30" maxlength="20" value="{Email}"/></td>
        </tr>
        <tr>
            <td width="129"><strong>No Telepon</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td >+ 62 <input type="text"  name="notlp" id="notlp" size="25" maxlength="20" value="{NoTlp}" onkeypress="return onlyNumbers(event);"/></td>
        </tr>
        <tr>
            <td width="129"><strong>No Handphone</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td >+ 62 <input type="text"  name="nohp" id="nohp" size="25" maxlength="20" value="{NoHP}" onkeypress="return onlyNumbers(event);"/></td>
        </tr>
        <tr>
            <td width="129"><strong>Nama Web Site</strong></td>
            <td width="34" align="center"><strong>:</strong></td>
            <td ><input type="text"  name="nmaweb" id="nmaweb" size="30" maxlength="20" value="{Websitename}" /></td>
        </tr>
        <tr>
            <td colspan="3" align="center"><input type="submit" value="Save" name="btnSave" >&nbsp;<input type="button" name="btnClose" value="Back" class="btn" onclick="javascript:history.back(1);" /></td>
        </tr>
    </table>
</form>
{/mastersupp}